package com.examination.system.administrator.controller;

import com.examination.api.administrator.QreaschinaControllerApi;
import com.examination.framework.model.response.QueryResponseResult;
import com.examination.system.administrator.service.QreaschinaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 寇淇芮
 * @Date 2019/8/29 8:57
 */
@RestController
@RequestMapping("/administrator/qreaschina")
public class QreaschinaController implements QreaschinaControllerApi {



    @Autowired
    private QreaschinaService qreaschinaService;

    @Override
    @GetMapping("/obtainProvince")
    public QueryResponseResult getObtainProvince() {
        return qreaschinaService.getObtainProvince();
    }

    @Override
    @GetMapping("/toObtain")
    public QueryResponseResult getToObtain(String id) {
        return qreaschinaService.getToObtain(id);
    }

    @Override
    @GetMapping("/county")
    public QueryResponseResult getCounty(String id) {
        return qreaschinaService.getCounty(id);
    }
}
